package net.alan.modules.repository;

import net.alan.modules.bean.UserLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 用户相关日志
 * Author 李岩飞
 * Email eliyanfei@126.com
 * 2017/11/21
 */

public interface UserLogRepository extends JpaRepository<UserLog, Long> {
    /**
     * 根据userId查询带分页的数据
     *
     * @param userId
     * @param pageable
     * @return
     */
    public Page<UserLog> findByUserId(Integer userId, Pageable pageable);


}
